package com.chenxiao.datasource2.service.Impl;

import com.chenxiao.datasource2.entity.Role;
import com.chenxiao.datasource2.mapper.db2.RoleMapper;
import com.chenxiao.datasource2.service.RoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: CX
 * @Date: Created in  2023/12/06 23:07
 * @version: v1.0
 * @Description: TODO
 **/
@Service
public class RoleServiceImpl implements RoleService {
    @Resource
    private RoleMapper roleMapper;
    @Override
    public Role selectByPrimaryKey(Long id) {
        return roleMapper.selectByPrimaryKey(id);
    }
}
